package com.lanqiao.testwork;

public class Test23 {

	public static void main(String[] args) {
		test();
	}

	/**
	 * 五人最小10岁，哥哥相差2岁，求最大
	 */
	private static void test() {
		System.out.println(fun(5));
	}
	
	private static int fun(int i) {
		if (i == 1) {
			return 10;
		}
		int num = fun(i - 1);
		return num + 2;

	}

}
